<template>
  <div class="my_driver">
    <div class="my_text_center" :style="`background-color:${bck}`">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    bck: {
      type: String,
      default: 'white'
    }
  },
  mounted() {
    // let element = document.querySelector('.mydivider_font');
    // element.style.backgroundColor = this.bck;
  }
}
</script>

<style>
.my_driver {
  display: block;
  height: 2px;
  width: 100%;
  margin: 24px 0;
  background-color: #c54daa;
  position: relative;
}
.my_text_center {
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  position: absolute;
  padding: 0 20px;
}
</style>
